package com.baozun.houji.order.model.bean

import com.baozhun.mall.common.R
import com.baozhun.mall.common.base.BaseApplication
import java.io.Serializable

/**
 * @Title：退款信息model
 * @Description：
 * @Author：xing.luo
 * @Since：2022/11/20
 * @Version：1.0.0
 */
open class RefundInfoBean(
    var num: String = "", //退货数量
    var total_amount: String? = "", //商品总价
    var return_points: String? = "", //余额返还
    var freight: String? = "",
    var total: String? = "", //商品总价
    var refund_points: String? = "", //退款扣除余额
) : Serializable {
    /**
     * 是否为原价购买，没使用余额
     */
    open fun isOriginalPriceBuy(): Boolean {
        return return_points == null || return_points == "0" || return_points == "0.00"
    }

    fun numFormat(): String {
        return "$num" + BaseApplication.mInstance.getString(com.baozhun.mall.res.R.string.piece)
    }

}